package com.sfd.core.constant;

/**
 * 状态码枚举对象
 */
public enum ResCodeEnum {
    /**
     * 状态码枚举对象
     */
    CODE_SUCCESS(1000, "操作成功"),
    CODE_BUS_ERR(1001, "业务异常"),
    CODE_PARAM_ERR(1002, "参数异常"),
    CODE_SYS_ERR(1003, "系统异常"),
    CODE_OTHER_ERR(1004, "调用其他平台接口异常"),
    CODE_REQUEST_ERR(1005, "请求地址异常"),
    CODE_LOGIN_ERR(1006, "无效登录状态"),
    CODE_AUTHORIZATION_ERR(1007, "权限不足"),
    CODE_DISABLED(1008, "账号被禁用");

    Integer value;
    String msg;

    ResCodeEnum(Integer value, String msg) {
        this.value = value;
        this.msg = msg;
    }

    public Integer getValue() {
        return value;
    }

    public String getMsg() {
        return msg;
    }
}
